import time

from selenium import webdriver
from selenium.webdriver.common.by import By

# 创建浏览器驱动对象
driver = webdriver.Edge()
# 打开页面
driver.get("http://localhost:82/index.php")
# 操作元素
driver.find_element(By.CLASS_NAME,"red").click()
driver.find_element(By.ID,"username").send_keys("")
driver.find_element(By.ID,"username").send_keys("")
driver.find_element(By.ID,"password").send_keys("")
driver.find_element(By.ID,"verify_code").send_keys("")
driver.find_element(By.CLASS_NAME,"J-login-submit").click()
time.sleep(2)

#

time.sleep(10)

driver.quit()